export default {
    name: "app",
    data() {
        return {
            // 分页
            // page: this.$store.state.page,
            currentPage: 1,
            // total: this.$store.state.page.total,
            // pageSize: this.$store.state.page.pageSize,
            // 表头
            // tableColumnList: this.$store.state.tableColumnList,
            // 表格数据
            // showList: this.$store.state.showList,
        }
    },
    created() {
    },
    methods: {
        //对el-table的表头，表格的样式进行设置
        tableHeaderCellStyle() {
            return 'background-color: #2c9678; color: #ffffff; border-color: white;'
        },
        tableCellStyle() {
            return 'border-color: #2c9678;'
        },
        // 页数变化
        handleCurrentChange(val) {
            this.currentPage = val;
        },

        // modify_pageSize() {
        //     this.pageSize = 6
        // },

        // 判断是否为布尔值
        // isBoolean(item) {
        //     if (typeof item == 'boolean') return true
        // },
        // 布尔类型转换
        formatBoolean(row, column, cellValue) {
            let ret = ''
            if (typeof cellValue == 'boolean') {
                if (cellValue == true) {
                    ret = "\u2714"
                } else if (cellValue == false) {
                    ret = "\u2718"
                }
            } else {
                ret = cellValue;
            }
            return ret;
        },
        // to_order_detail(row, event, column) {
        //     if (window.sessionStorage.getItem("activePath3") == "inbound_manage")
        //         this.$router.push({ path: "/inbound_order_detail", query: { detail: row } })
        //     else if (window.sessionStorage.getItem("activePath3") == "outbound_manage")
        //         this.$router.push({ path: "/outbound_order_detail", query: { detail: row } })
        // },
    },
}